#!/bin/sh

#make

# 分析路径
if [ -d "/usr/local/lib/audacious/General/" ]
then
    cp ShowLyric.so /usr/local/lib/audacious/General/ShowLyric.so
    echo "文件au_ShowLyric.so被安装到/usr/local/lib/audacious/General/"
fi

if [ -d "/usr/lib/audacious/General/" ]
then
    cp ShowLyric.so /usr/lib/audacious/General/ShowLyric.so
    echo "文件au_ShowLyric.so被安装到/usr/lib/audacious/General/"
fi

cd UI
mkdir -p /usr/share/ShowLyric/
cp SelLyricDlg.glade /usr/share/ShowLyric/
cp ShowLyricUI.glade /usr/share/ShowLyric/
cp EditLyricDlg.glade /usr/share/ShowLyric/
cp ConfigDlg.glade /usr/share/ShowLyric/

cd ../DownLoadLyric
sh mk install > /dev/null

chmod +x /usr/share/ShowLyric/*

echo ""
echo "安装完成！有问题请发email到qimingos_lsk@163.com"
